import {request} from 'umi';
import {addData, deleteById, get, post, updateById} from "@/services/base-request";

export const queryCoachLessonsAPI = (data: API.PageParams) => {
  return post('/lesson/getByCoach', data)
}

export const addLessonAPI = (data: API.ILesson) => {
  return addData("/lesson", data)
}

export const updateLessonAPI = (data: API.ILesson) => {
  return updateById("/lesson", data)
}

export const deleteLessonAPI = (id: string | number) => {
  return deleteById("/lesson", id)
}

